{% extends "base/base.html" %}
{% load url from future %}

{% block content %}

<script type="text/javascript">

   // Submit Button
   $(function() {

      //Submit
      $("#submit").button();
   });

</script>


{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}
<table class="index">
<tr>
    <td>{{ form.username.label_tag }}</td>
    <td>{{ form.username }}</td>
</tr>
<tr>
    <td>{{ form.password.label_tag }}</td>
    <td>{{ form.password }}</td>
</tr>

<tr>
 <td colspan="2" align="right">
  <input class="submit-button" id="submit" type="submit" value="login" style="width:75"/>
 </td>
</tr>
</table>
<input type="hidden" name="next" value="{{ next }}" />
</form>

{% endblock %}
